package com.ruoyi.client.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.client.domain.entity.BlogArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.client.domain.entity.BlogUser;
import com.ruoyi.client.domain.vo.CHArticleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章表 Mapper 接口
 * </p>
 *
 * @author fz
 * @since 2025-02-27
 */
public interface BlogArticleMapper extends BaseMapper<BlogArticle> {

    Page<BlogArticle> getAttentionArticle(@Param("userId") Long userId, @Param("page") Page<BlogArticle> build);

    Page<CHArticleVo> getHistoryPage(@Param("userId") Long userId, Page<CHArticleVo> buildPage);

    Page<CHArticleVo> getCollectPage(@Param("userId") Long userId, Page<CHArticleVo> buildPage);

    BlogUser getInfo(Long id);
}
